package com.bootdo.wx.dao;

import com.bootdo.wx.domain.MemberUserDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 用户,会员
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-22 15:32:07
 */
@Mapper
public interface MemberUserDao {

	MemberUserDO get(String id);
	
	List<MemberUserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MemberUserDO memberUser);
	
	int update(MemberUserDO memberUser);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	int getFansNum(Map<String, Object> map);

	List<Map<String,Object>> getMyFans(Map<String, Object> map);

	MemberUserDO queryByOpenid(String openId);

	List<Map<String,Object>> getOrderEcharts(Map<String,Object> map);

	List<Map<String,Object>> allMoneyEcharts(Map<String,Object> map);

	List<Map<String,Object>> allUserEcharts(Map<String,Object> map);

	MemberUserDO getByCode(String code);

	List<Map<String,Object>> getMoneyListByUser(Map<String,Object> map);

	int getMoneyListByUserCount(Map<String, Object> map);

	List<Map<String,Object>> getMyFansH(Map<String,Object> map);

	int getMyFansHCount(Map<String, Object> map);

	BigDecimal getShoppingNum(Map<String,Object> map);

	List<Map<String,Object>> getShoppingList(Map<String,Object> map);

	int getShoppingListCount(Map<String, Object> map);

	int getZtChildrenNUm(Map<String, Object> map);

	/**
	 * @author long
	 * 2020年6月15日上午11:03:22
	 * 方法释义:
	 * 参数:
	 *
	 */
	MemberUserDO findByPhone(String phoneNumber);


}
